
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var arr = [[3,8,2],[2,7],[9,0,1,6]]; 
    for(var i=0;i<arr.length;i++){
        for(var j=0;j<arr[i].length;j++){
            document.write(arr[i][j]+"&nbsp");
        }
        document.write("<br/>")
    }

</script>
</html>